package com.mlethe.android.demo.seattable.entity;

public class Result<T> {
  //返回状态
  private String state;

  //返回内容
  private String content;

  //返回实体
  private T object;

  public String getState() {
    return state;
  }

  public String getContent() {
    return content;
  }

  public T getObject() {
    return object;
  }

  public boolean isOk() {
    if (state != null && state.equals("1")) {
      return true;
    } else {
      return false;
    }
  }

  @Override
  public String toString() {
    return "Result{" +
            "state='" + state + '\'' +
            ", content='" + content + '\'' +
            ", object=" + object +
            '}';
  }
}
